<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: gray;
        }

        main {
            height: 500px;
            background-color: green;
            overflow: hi;
        }

        div {
            height: 200px;
            background-color: red;
            margin-top: 50px;
        }
    </style>
</head>

<body>
    <main>
        <div></div>
    </main>
</body>

</html>